package com.meituan.sqt.mock.domain.enums;

import lombok.Getter;

/**
 * @author: chenzhenfeng@meituan.com
 * @date: 2023/1/30 17:04
 * @description:
 * 示例：客户平台的订单状态机如下，订单完成支付后，通知商企通支付成功，通过订单查询接口从商企通获取订单信息并更新订单状态
 */
public enum OrderStatusEnum {
    TO_PAY(0, "未支付"),
    PAY_EXPIRE(1, "支付超时"),
    PAYED(2, "已支付"),
    FINISH(5, "已完成"),
    PARTIAL_REFUNDED(10, "部分退款"),
    FULLY_REFUNDED(11, "全额退款")
    ;

    @Getter
    private Integer code;
    @Getter
    private String desc;

    OrderStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
